package com.fyzk.activity.lottery.jc.beidan;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by fanxs11 on 2017/11/22.
 */

public class BeiDanBasePayAdapter extends BaseAdapter {
    protected Context context;
    protected List<BeiDanChildBean> infors = new ArrayList<>();
    protected OnBeiDanPayClickListerner listerner;

    public BeiDanBasePayAdapter(Context context, List<BeiDanChildBean> infors, OnBeiDanPayClickListerner listerner) {
        this.context = context;
        this.infors = infors;
        this.listerner = listerner;
    }

    @Override
    public int getCount() {
        return infors.size();
    }

    @Override
    public Object getItem(int i) {
        return infors.get(i);
    }

    @Override
    public long getItemId(int i) {
        return i;
    }

    @Override
    public View getView(int i, View view, ViewGroup viewGroup) {
        return null;
    }

    protected void jiSuanZhuShu() {

    }

    public void setInfors(List<BeiDanChildBean> infors) {
        this.infors = infors;
        this.notifyDataSetChanged();
    }

    interface OnBeiDanPayClickListerner {
        void onItemClick();
        void onZhanKaiClick(BeiDanChildBean infor);
    }
}
